<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>测试document onchange</title>
</head>
<body>
<input type="text" onchange="console.log('input onchagne')">
<input type="text" oninput="console.log('input oninput')">
<button onclick="alert(1)">+</button>
<script>

  document.onchange = (ev) => console.log('document.onchange');
  document.oninput = (ev) => console.log('document.oninput');
</script>
</body>
</html>
